#if !defined( EXCEPTION_WITH_STR_H)
#define  EXCEPTION_WITH_STR_H
#include <string>

class exception_with_str: public std::exception
{
	std::string err_msg;
public:
	~exception_with_str() throw (){}
	exception_with_str(const std::string& err_msg_):
		err_msg(err_msg_){}
	virtual const char* what() const throw()
	{
		return err_msg.c_str();
	}
};
#endif  // EXCEPTION_WITH_STR_H
